package com.qd.pandaparkflow.context;

import com.qd.common.panda.domain.entity.feetime.BaseFeeTimeDTO;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author sjk
 */
@Data
@Accessors(chain = true)
@ToString
public class ChargeFeeParkTimeContext {

    /**
     * 充电开始时间
     */
    private LocalDateTime startTime;
    /**
     * 充电结束时间
     */
    private LocalDateTime endTime;
    /**
     * 充电时长
     */
    private Long minutes;
    /**
     * 金额
     */
    private BigDecimal amount;
    /**
     * 步骤日志
     */
    private List<String> printLog;
    /**
     * 充电免费停车时段ID
     */
    private String feeTimeId;
    /**
     * 规则
     */
    private List<BaseFeeTimeDTO> feeTimeRules;
    /**
     * 免费时长
     */
    private Integer feeTime;


    public void freeData() {
        this.startTime = null;
        this.endTime = null;
        this.minutes = null;
        this.amount = null;
        this.printLog = null;
        this.feeTimeId = null;
        this.feeTime = null;
    }
}
